/**
 * 
 */
package cre.simple.jpa.test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import cre.simple.jpa.service.UserService;

/**
 * @author Cre.Gu
 *
 */
public class SimpleSpringJpaDemo {

	@SuppressWarnings("resource")
	public static void main(String[] args) {

		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring-jpa-cfg.xml");
		UserService userService = ctx.getBean("userService", UserService.class);
		userService.createNewAccount("gucb", "123456", 1);
	}
}
